home *** CD-ROM | disk | FTP | other *** search
- #ifndef BUILD_LIBRARY
-
- #include "RotateString.h"
-
- #define NIL_POINTER 0L
- #define REMOVE_ALL_EVENTS 0
- #define VISIBLE TRUE
- #define MOVE_TO_FRONT (Ptr)-1
- #define HAS_GOAWAY TRUE
-
- void main()
- {
- WindowPtr window1,window2;
- BitMap destMap;
- Rect windowRect;
-
- InitGraf( &thePort);
- InitFonts();
- FlushEvents( everyEvent, REMOVE_ALL_EVENTS);
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs( NIL_POINTER);
- InitCursor();
-
-
-
- SetRect( &windowRect, 100, 100, 200, 200);
-
- window1 = NewWindow( NIL_POINTER, &windowRect, "\pCounter CW", VISIBLE,
- noGrowDocProc,(WindowPtr)-1, HAS_GOAWAY, NIL_POINTER);
-
- SetPort(window1);
- TextFont(4);
- //TextFace(bold+italic);
- TextSize(96);
-
- RotateString( "\pRotatey", &destMap, counterClockWise);
- SizeWindow(window1,destMap.bounds.right,destMap.bounds.bottom,false);
-
- CopyBits( &destMap, &window1->portBits, &destMap.bounds,
- &destMap.bounds, srcCopy, NIL_POINTER);
-
- OffsetRect(&windowRect,(windowRect.right - windowRect.left ) + 40,0);
- window2 = NewWindow( NIL_POINTER, &windowRect, "\pClock Wise", VISIBLE,
- noGrowDocProc,(WindowPtr) MOVE_TO_FRONT, HAS_GOAWAY, NIL_POINTER);
-
- SetPort(window2);
- TextFont(4);
- //TextFace(bold+italic);
- TextSize(96);
-
- RotateString( "\pRotate", &destMap, clockWise);
- SizeWindow(window2,destMap.bounds.right,destMap.bounds.bottom,false);
-
- CopyBits( &destMap, &window2->portBits, &destMap.bounds,
- &destMap.bounds, srcCopy, NIL_POINTER);
-
- while( !Button());
- }
-
- #endif